package icu.sehnen.user.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import icu.sehnen.user.entity.Permission;
import icu.sehnen.user.entity.RolePermissionRelation;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 后台用户角色和权限关系表 Mapper 接口
 * </p>
 *
 * @author icu.sehnen
 * @since 2021-04-27
 */
public interface RolePermissionRelationMapper extends BaseMapper<RolePermissionRelation> {
    List<Permission> getPermissionListByRoleId(Long id);

    void instert(@Param("ids") Long[] ids, @Param("id") Long id);
}
